<title>消费记录</title>
<link rel="stylesheet" href="/assets/assets(home)/css/record.css">

<!-- <header class="mui-bar mui-bar-nav mui-bar-nav-bg">
    <a id="icon-menu" class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
    <h1 class="mui-title">消费记录</h1>
</header> -->
{foreach $record as $item}
{if $item['busid'] == $AutoLogin['id']}
<div class="list">
    <div class="item">
        <div class="content">
            <span>消费描述：</span>{$item.content}
        </div>
        <div class="total">
            <span>消费金额：</span>￥{$item.total | abs}
        </div>
        <div class="time">
            <span>消费时间：</span>{$item.createtime | date="Y-m-d H:i:s",###}
        </div>
    </div>
</div>
{/if}
{/foreach}

<script>
    //修改浏览器自带的后退按钮
    window.history.pushState(null, null, ``);

    window.addEventListener('popstate', function (e) {
        e.preventDefault()
        location.href = `{:url('/home/business/center')}`
    }, false)
</script>